/**
 * 使用 async await 读取多个文件，并将内容链接输出
 */

// fs.readFile('path',(err,data)=>{

// })
const util = require('util');
const fs = require('fs');
let minReadFile = util.promisify(fs.readFile);

(async function(){
    try{
        let file1 = await minReadFile('./css/1.css','utf-8');
        let file2 = await minReadFile('./css/2.css','utf-8');
        let file3 = await minReadFile('./css/3.css','utf-8');
        console.log(file1 + file2 + file3);
    }catch(e){
        console.log('文件路径错误',e);
    }
})()